Peripheral intravenous analysis (PIVA) algorithm